import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
//导入
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//导入
import STable from '@surely-vue/table'

import ViewUIPlus from 'view-ui-plus'
import 'view-ui-plus/dist/styles/viewuiplus.css'

import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'

//icon样式
// import './iconfont/iconfont.css'

const webackCompont = require.context('./components', true, /\.vue$/)
const app = createApp(App)
const webackCompontS = webackCompont.keys().forEach((item) => {
  const utrl = webackCompont(item).default
  app.component(utrl.name, utrl)
})
app
  .use(Antd)
  .use(ViewUIPlus)
  .use(STable)
  .use(ElementPlus)
  .use(store)
  .use(router)
  .mount('#app')
